package cn.wolfcode.luowowo.community.domain;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.common.domain.BaseDomain;
import cn.wolfcode.luowowo.member.domain.UserInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

@Setter
@Getter
public class Question extends BaseDomain{

    public static final int STATE_WAITING = 0; // 匿名
    public static final int STATE_RELEASE = 1;  //发布

    private String title;// 标题

    private String content;// 内容

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime;// 创建时间

    private UserInfo userInfo;// 提问对象

    private boolean ispublic;// 是否公开

    private Destination dest;// 地区

    private List<Answer> answer;

    private int thumbsupnum;
}